package com.example.websocket.pattern.creational.builder;

public class BuilderPatternDEMO {

    public static void main(String[] args) {
        MealBuilder builder = new MealBuilder();
        Meal veg = builder.prepareVegMeal();
        veg.showItems();
        System.out.println("The item cost is " + veg.getCost());

        Meal nonVeg = builder.prepareNonVegMeal();
        nonVeg.showItems();
        System.out.println("The item cost is " + nonVeg.getCost());
    }
}
